<?php
$this->breadcrumbs=array(
	$model->name,
);

if($model->pre_work_status == 1) {
	$preTrClass = 'success';
	$preStatus = Yii::t('project','Complete');
	$preContent = CHtml::link('<i class="icon-edit"></i>  ' . Yii::t('project','Preliminary Work'), array('project/prework', 'id'=>$model->id));
} else {
	$preTrClass = 'error';
	$preStatus = Yii::t('project','Incomplete');
	$preContent = '<i class="icon-minus-sign"></i>  ' . Yii::t('project','Preliminary Work');
}

if($model->advanced_info_status == 1) {
	$adTrClass = 'success';
	$adStatus = Yii::t('project','Complete');
	$adContent = CHtml::link('<i class="icon-edit"></i>  ' . Yii::t('project','Advanced Info'), array('project/adinfo', 'id'=>$model->id));
} else {
	$adTrClass = 'error';
	$adStatus = Yii::t('project','Incomplete');
	$adContent = '<i class="icon-minus-sign"></i>  ' . Yii::t('project','Advanced Info');
}

if($model->qualification_status == 1) {
	$quTrClass = 'success';
	$quStatus = Yii::t('project','Complete');
	$quContent = CHtml::link('<i class="icon-edit"></i>  ' . Yii::t('project','Qualification'), array('project/qualify', 'id'=>$model->id));
} else {
	$quTrClass = 'error';
	$quStatus = Yii::t('project','Incomplete');
	$quContent = '<i class="icon-minus-sign"></i>  ' . Yii::t('project','Qualification');
}

if($model->divide_projects_status == 1) {
	$diTrClass = 'success';
	$diStatus = Yii::t('project','Complete');
	$diContent = CHtml::link('<i class="icon-edit"></i>  ' . Yii::t('project','Project Subdivision'), array('project/sub', 'id'=>$model->id));
} else {
	$diTrClass = 'error';
	$diStatus = Yii::t('project','Incomplete');
	$diContent = '<i class="icon-minus-sign"></i>  ' . Yii::t('project','Project Subdivision');
}
	
?>

<table class="table table-hover">
	<caption class="text-info"><?php echo Yii::t('project','The project status table');?></caption>
	<thead>
		<tr>
			<th width="25%"><i class="icon-star-empty"></i><?php echo Yii::t('project','Status');?></th>
			<th width="25%"><i class="icon-th-large"></i><?php echo Yii::t('project','Steps');?></th>
			<th width="50%"><i class="icon-comment"></i><?php echo Yii::t('project','Description');?></th>
		</tr>
	</thead>
	<tbody>
		<tr class="success">
			<td><?php echo Yii::t('project','Complete');?></td>
			<td><?php echo CHtml::link('<i class="icon-edit"></i>  ' . Yii::t('project','Describe'), array('project/describe', 'id'=>$model->id));?></td>
			<td><i class="icon-hand-right"></i><?php echo Yii::t('project','Provide the basic details about this project');?></td>
		</tr>
		<tr class="<?php echo $preTrClass;?>">
			<td><?php echo $preStatus;?></td>
			<td><?php echo $preContent;?></td>
			<td><i class="icon-hand-right"></i><?php echo Yii::t('project','Preliminary work includes Feasibility Research, Initial Design, Finanical Assessment, and Bidding');?></td>
		</tr>
		<tr class="<?php echo $adTrClass;?>">
			<td><?php echo $adStatus;?></td>
			<td><?php echo $adContent;?></td>
			<td><i class="icon-hand-right"></i><?php echo Yii::t('project','Advanced Information includes Planned Investment, Pratical Investment and Scale');?></td>
		</tr>
		<tr class="<?php echo $quTrClass;?>">
			<td><?php echo $quStatus;?></td>
			<td><?php echo $quContent;?></td>
			<td><i class="icon-hand-right"></i><?php echo Yii::t('project','Qualificatin includes censor the owner, initial design, supervision, and constructin department');?></td>
		</tr>
		<tr class="<?php echo $diTrClass;?>">
			<td><?php echo $diStatus;?></td>
			<td><?php echo $diContent;?></td>
			<td><i class="icon-hand-right"></i><?php echo Yii::t('project','Project have to be subdivided into Unit Projects and Segment Projects');?></td>
		</tr>
	</tbody>
</table>
